package com.fh.modules.ems.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 用户优惠券模型，用户客户端前台展示
 * @author： qiujunda
 * @date： 2019/10/14 23:11
 */
@Data
public class CouponModel implements Serializable {
    private static final long serialVersionUID = 7013635055975084215L;

    private Integer id;

    private Integer couponTemplateId;

    private Integer memberId;

    private Integer getType;

    private Integer useStatus;

    private String code;

    private String name;

    private String note;

    private BigDecimal price;
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date overdueTime;
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date useStartTime;
}
